package com.topscomm.main.config;

import com.topscomm.tap.common.DatacodeCache;
import com.topscomm.tap.common.GpmDatacodeCache;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Scope;
import org.springframework.core.annotation.Order;

@Configuration
public class ResetDatacodeCacheConfig {
	@Order(0)
	@Primary
	@Bean
	@Scope(value = "prototype")
	public DatacodeCache datacodeCache() {
		return new GpmDatacodeCache();
	}
}
